/**
 * 
 */
package com.volatileshooter.entity.player;

import com.volatileshooter.entity.Bucket;
import com.volatileshooter.entity.BucketManager;
import com.volatileshooter.entity.EntityManager;
import com.volatileshooter.networking.client.ClientListener;

/**
 * @author Ahmed
 *
 */
public class PlayerBucketManager implements BucketManager, ClientListener {

	/* (non-Javadoc)
	 * @see com.volatileshooter.entity.BucketController#update(float, com.volatileshooter.entity.Bucket)
	 */
	@Override
	public void update(float dt, Bucket bucket) {
		// check for new player from the network and add them to the bucket

	}

	@Override
	public void accepted(String message) {
		PlayerEntity entity = new PlayerEntity();
		
		EntityManager.instance().getBucket("players").getEntities().add(entity);
		
	}

	@Override
	public void chat(short id, String chat) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void quit(short id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void rejected(String reason) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void joined(short id, String name) {
		// TODO Auto-generated method stub
		
	}

}
